import request from '@/server/request';

export const GET_FILE_URL = 'file/downloadById';

export function getFile(params) {
  return request({
    url: GET_FILE_URL,
    params,
    responseType: 'blob'
  });
}

// 获取任务列表
export function saveDynamic(data) {
  return request({
    url: 'dynamicForm/save',
    method: 'post',
    data
  });
}
